<?php
/**
 * @version     1.0.0
 * @package     com_shoes
 * @copyright   Copyright (C) 2014. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Quang <quang4it@yahoo.com> - http://viseed.com
 */
// no direct access
defined('_JEXEC') or die;
?>  
<div class="items">
    <?php $show = false; ?>
    <div class="art-content-layout-row">
        <?php foreach ($this->items as $key => $item) : $show = TRUE; ?>
            <?php if (!($key % 4)) { ?>
                </div><div class="art-content-layout-row">
            <?php } ?>
            <div class="art-layout-cell layout-item-0" style="width: 33%" >
                <h3 style="border-bottom: 1px solid #CFD8E2; padding-bottom: 5px"><?php echo $item->title; ?></h3>
                <div class="image-caption-wrapper" style="width: 100%">
                    <div id="0c3aae063fa14d50ac30aaa9db80022c" style="position: relative; display: inline-block; z-index: 0; margin: 5px;  border-style: solid; border-color: #9CAFC4; border-width: 1px;  " class="art-collage">
                        <div class="art-slider" data-width="325" data-height="215">
                            <div class="art-slider-inner">
                                <div class="art-slide-item">
                                    <img src='<?php echo JUri::base() . "images/shoes/thumbs/" . $item->file['image_resize']; ?>' alt='<?php echo $item->file['image_alt'] ? $item->file['image_alt'] : $item->title; ?>' />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php echo $item->long_desc; ?>
            </div> 
        <?php endforeach; ?>                                           
    </div>
    <?php
    if (!$show):
        echo JText::_('COM_SHOES_NO_ITEMS');
    endif;
    ?>
</div>
<?php if ($show): ?>
    <div class="pagination">
        <p class="counter">
            <?php echo $this->pagination->getPagesCounter(); ?>
        </p>
        <?php echo $this->pagination->getPagesLinks(); ?>
    </div>
<?php endif; ?>